FROM node:22.11.0-bookworm-slim
MAINTAINER gvp9132 <wjj910302@gmail.com>
LABEL author="gvp9132"
# 系统编码
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# 设置工作目录
WORKDIR /jasmine
# 设置时区为"Asia/Shanghai"
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone

COPY . /jasmine
RUN npm install --verbose --registry=https://registry.npmmirror.com

CMD ["npm", "run", "dev"]

EXPOSE 5173
